package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.entity.Permissions;

import java.util.List;

public interface PermissionsService extends IService<Permissions>{

    List<Permissions> getPermissionTree(Integer parentId,Integer userId);

    List<Permissions> selectByRolesAndUserId(Integer userId);

    List<Permissions> getPermissions(Integer userId);
}
